<template>
  <div class="home">
    <div id="nav">
      <router-link to="/">Home</router-link> |
      <router-link to="/about">About</router-link>
    </div>
    <router-view />
    <!-- <img alt="Vue logo" src="../assets/logo.png" /> -->
    <!-- <HelloWorld msg="Welcome to Your Vue.js App"/> -->
    <syntax></syntax>
    <computed></computed>
    <style-and-class></style-and-class>
    <if></if>
    <for></for>
    <event></event>
    <model-form></model-form>
  </div>
</template>

<script>
// @ is an alias to /src
// import HelloWorld from '@/components/HelloWorld.vue'
import Syntax from '@/components/Syntax'
import Computed from '@/components/Computed'
import Style from '@/components/Style'
import If from '@/components/If'
import For from '@/components/For'
import Event from '@/components/Event'
import Form from '@/components/Form'

export default {
  name: 'Home',
  components: {
    // HelloWorld
    Syntax,
    Computed,
    StyleAndClass: Style,
    If,
    For,
    Event,
    modelForm: Form
  }
}
</script>

<style lang="less" scoped>
#nav {
  padding: 30px;
}

#nav a {
  font-weight: bold;
  color: #2c3e50;
}

#nav a.router-link-exact-active {
  color: #42b983;
}
</style>
